projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d3aa2c
)
gtk-demo: Avoid compiler warnings without assertions
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 12 Apr 2021 21:12:01 +0000
(17:12 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 13 Apr 2021 01:22:46 +0000
(21:22 -0400)
Avoid an unused variable warning.
demos/gtk-demo/main.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/main.c
b/demos/gtk-demo/main.c
index 96ec96e4764ccfb635f2c70fa48813910aff65a4..3253131541743ef1b0a49f195601d69bcd347e0d 100644
(file)
--- a/
demos/gtk-demo/main.c
+++ b/
demos/gtk-demo/main.c
@@
-751,7
+751,6
@@
demo_filter_by_name (gpointer item,
gpointer user_data)
{
GtkTreeListRow *row = item;
- GtkFilterListModel *model = user_data;
GListModel *children;
GtkDemo *demo;
guint i, n;
@@
-762,7
+761,7
@@
demo_filter_by_name (gpointer item,
return TRUE;
g_assert (GTK_IS_TREE_LIST_ROW (row));
- g_assert (GTK_IS_FILTER_LIST_MODEL (
model
));
+ g_assert (GTK_IS_FILTER_LIST_MODEL (
user_data
));
/* Show a row if itself of any parent matches */
for (parent = row; parent; parent = gtk_tree_list_row_get_parent (parent))